package com.fosu.config;

import com.alibaba.druid.pool.DruidDataSourceC3P0Adapter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;
import javax.swing.*;

/**
 * Desription
 *
 * @author manno
 * @date 2020/10/16
 */
@Configuration
public class DruidDatasourceConfig
{
    @Bean
    @ConfigurationProperties(prefix = "spring.datasource")
    public DataSource dataSource(){
        return new com.alibaba.druid.pool.DruidDataSource();

    }
}
